package controller;
import model.EmployeeDTO; 
public class EmployeeSession {

	private String sessionId = null;
	private EmployeeDTO employee = null;
	private EmployeeDTO[] subordinates = null;

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getSessionId() {
		return sessionId;
	}

	
	public void setEmployee(EmployeeDTO employee) {
		this.employee = employee;
	}

	public EmployeeDTO getEmployee() {
		return employee;
	}

	public void setSubordinates(EmployeeDTO[] subordinates) {
		this.subordinates = subordinates;
	}

	public EmployeeDTO[] getSubordinates() {
		return subordinates;
	}

	public boolean isEmployee() {
		if (employee == null)
			return false;
		return employee.hasEqualMapping(employee);
	}
/*
	public boolean isManager() {
		if (employee == null)
			return false;
		return employee.hasEqualMapping();
	}

	public boolean isAdmin() {
		if (user == null)
			return false;
		return user.hasRole("admin");
	}
*/
}
